package cisdi.mes.sm.rm.domain;

import java.io.Serializable;
import javax.persistence.*;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import cisdi.mes.utils.base.CustomDateSerializer;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the V_SM_RM_STORAGE database table.
 * 
 */
@Entity
@Table(name="V_SM_RM_STORAGE")
public class VSmRmStorage implements Serializable {
	private static final long serialVersionUID = 1L;

	@Column(name="ALLOW_MULTI_MAT")
	private String allowMultiMat;

	@Column(name="ALLOW_NEGATIVE")
	private String allowNegative;

	@Column(name="BIN_NUMBER")
	private String binNumber;

	@Column(name="INNER_SEQ")
	private BigDecimal innerSeq;

	@Column(name="IS_ACTIVED")
	private String isActived;

	@Column(name="MATERIAL_DESC")
	private String materialDesc;

	@Column(name="MATERIAL_ID")
	private String materialId;

	@Id
	@Column(name="STORAGE_ID")
	private String storageId;

	@Column(name="STORAGE_LOC")
	private String storageLoc;

	@Column(name="STORAGE_NAME")
	private String storageName;

	@Column(name="STORAGE_TYPE")
	private String storageType;

	@Column(name="STORAGE_USE")
	private String storageUse;

	@JsonSerialize(using = CustomDateSerializer.class)
    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="TIME_STAMP")
	private Date timeStamp;

	@Column(name="TOTAL_WGT")
	private Double totalWgt;

	private BigDecimal volume;

    public VSmRmStorage() {
    }

	public String getAllowMultiMat() {
		return this.allowMultiMat;
	}

	public void setAllowMultiMat(String allowMultiMat) {
		this.allowMultiMat = allowMultiMat;
	}

	public String getAllowNegative() {
		return this.allowNegative;
	}

	public void setAllowNegative(String allowNegative) {
		this.allowNegative = allowNegative;
	}

	public String getBinNumber() {
		return this.binNumber;
	}

	public void setBinNumber(String binNumber) {
		this.binNumber = binNumber;
	}

	public BigDecimal getInnerSeq() {
		return this.innerSeq;
	}

	public void setInnerSeq(BigDecimal innerSeq) {
		this.innerSeq = innerSeq;
	}

	public String getIsActived() {
		return this.isActived;
	}

	public void setIsActived(String isActived) {
		this.isActived = isActived;
	}

	public String getMaterialDesc() {
		return this.materialDesc;
	}

	public void setMaterialDesc(String materialDesc) {
		this.materialDesc = materialDesc;
	}

	public String getMaterialId() {
		return this.materialId;
	}

	public void setMaterialId(String materialId) {
		this.materialId = materialId;
	}

	public String getStorageId() {
		return this.storageId;
	}

	public void setStorageId(String storageId) {
		this.storageId = storageId;
	}

	public String getStorageLoc() {
		return this.storageLoc;
	}

	public void setStorageLoc(String storageLoc) {
		this.storageLoc = storageLoc;
	}

	public String getStorageName() {
		return this.storageName;
	}

	public void setStorageName(String storageName) {
		this.storageName = storageName;
	}

	public String getStorageType() {
		return this.storageType;
	}

	public void setStorageType(String storageType) {
		this.storageType = storageType;
	}

	public String getStorageUse() {
		return this.storageUse;
	}

	public void setStorageUse(String storageUse) {
		this.storageUse = storageUse;
	}

	public Date getTimeStamp() {
		return this.timeStamp;
	}

	public void setTimeStamp(Date timeStamp) {
		this.timeStamp = timeStamp;
	}

	public Double getTotalWgt() {
		return this.totalWgt;
	}

	public void setTotalWgt(Double totalWgt) {
		this.totalWgt = totalWgt;
	}

	public BigDecimal getVolume() {
		return this.volume;
	}

	public void setVolume(BigDecimal volume) {
		this.volume = volume;
	}

}